﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.DTO {
    /// <summary>
    /// 登录
    /// </summary>
    [Serializable]
    public class marketing_login_model {
        /// <summary>
        /// 账号
        /// </summary>
        public string username { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string password { get; set; }
    }
    /// <summary>
    /// 修改密码
    /// </summary>
    [Serializable]
    public class marketing_change_pwd_model {

        public string old_pwd { get; set; }

        [Required(ErrorMessage = "请填写新密码"), MinLength(6, ErrorMessage = "新密码最短6位字符"), MaxLength(16, ErrorMessage = "新密码最长不能超过16位字符")]
        [RegularExpression(@"^(?![^a-zA-Z]+$)(?!\D+$).{6,16}$", ErrorMessage = "新密码必须为6-16位数字、字母或常用符号的组合")]
        public string new_pwd { get; set; }

    }
}
